Method: rich.tree.Tree.__rich_console__.<locals>.make_guide
Calls: 14, Exceptions: 0, Paths: 1Back
Path 1: 14 calls (1.0)
0 (4) 2 (4) 1 (3) 3 (3)
Style (14)
Segment (14)
1def make_guide(index: int, style: Style) -> Segment:
2 """Make a Segment for a level of the guide lines."""
3 if options.ascii_only:
4 line = ASCII_GUIDES[index]
5 else:
6 guide = 1 if style.bold else (2 if style.underline2 else 0)
7 line = TREE_GUIDES[0 if options.legacy_windows else guide][index]
8 return _Segment(line, style)